
<div class="page">
	<div class="fixed-bar">
		<div class="item-title">
			<h3><?php echo $lang['express_name']; ?></h3>
			<ul class="tab-base">
				<li><a class="current"><span><?php echo $lang['express_name']; ?></span></a></li>
				<li>
					<a href="javascript:;">
                        <span>
                            <?php
	                            if (empty($_GET['id'])) {
		                            echo "新增";
	                            }
	                            else{
		                            echo "编辑";
	                            }
                            ?>
                        </span>
					</a>
				</li>
			</ul>
		</div>
	</div>
	<div class="fixed-empty"></div>

	<form id="area_form" method="post" action="/admin/?act=express&op=edit">
		<input type="hidden" name="id" value="<?php echo $_GET['id']?>">
		<table class="table tb-type2">
			<?php
				if (isset($_GET['id'])) {
					$info = Model('express')->find($_GET['id']);
				} else {
					$info = array();
				}
			?>
			<tr class="noborder">
				<td colspan="2" class="required"><label class="validation" for="e_name">名称:</label></td>
			</tr>
			<tr class="noborder">
				<td class="vatop rowform"><input type="text" value="<?php echo $info['e_name'] ?>" name="e_name"
				                                 id="e_name" class="txt"></td>
				<td class="vatop tips"></td>
			</tr>
			<tr class="noborder">
				<td colspan="2" class="required"><label class="validation"
				                                        for="e_code">代码（用于系统区别，请填写和快递100接口相对照的英文代码）:</label></td>
			</tr>
			<tr class="noborder">
				<td class="vatop rowform"><input type="text" value="<?php echo $info['e_code'] ?>" name="e_code"
				                                 id="e_code" class="txt"></td>
				<td class="vatop tips"></td>
			</tr>
			<tr class="noborder">
				<td colspan="2" class="required"><label class="validation"
				                                        for="e_url">网址:</label></td>
			</tr>
			<tr class="noborder">
				<td class="vatop rowform"><input type="text" value="<?php echo $info['e_url'] ?>" name="e_url"
				                                 id="e_url" class="txt"></td>
				<td class="vatop tips"></td>
			</tr>

			<tfoot>
			<tr>
				<td colspan="2"><a href="JavaScript:void(0);" class="btn"
				                   id="submitBtn" onclick="$('form').submit()"><span><?php echo $lang['nc_submit']; ?></span></a></td>
			</tr>
			</tfoot>

		</table>
	</form>
	<div class="clear"></div>
</div>
</div>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.edit.js" charset="utf-8"></script>